package com.dmlll.service.impl;

import com.dmlll.dao.CityMapper;
import com.dmlll.pojo.City;
import com.dmlll.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements CityService{
    @Autowired
    private CityMapper cityMapper;

    @Override
    public List<City> selectCity(String code) {
        return cityMapper.selectCity(code);
    }

    @Override
    public String findCityByName(String name,String provinceCode) {
        return cityMapper.selectCodeByName(name,provinceCode);
    }
}
